package com.ruoyi.develop.goodsOrderMaterials.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.develop.goodsOrderMaterials.domain.GoodsOrderMaterials;
import org.apache.ibatis.annotations.Param;

/**
 * 库存产品拆解物料配置Mapper接口
 * @author qh
 * @date 2025-03-13
 */
public interface GoodsOrderMaterialsMapper {
    /**
     * 查询库存产品拆解物料配置
     * @param id 库存产品拆解物料配置主键
     * @return 库存产品拆解物料配置
     */
    public GoodsOrderMaterials selectById(String id);

    /**
     * 查询库存产品拆解物料配置列表
     * @param entity 库存产品拆解物料配置
     * @return 库存产品拆解物料配置集合
     */
    public List<GoodsOrderMaterials> selectList(GoodsOrderMaterials entity);

    public List<GoodsOrderMaterials> selectByGoodsId(String goodsId);

    public List<GoodsOrderMaterials> selectByGoodsIdMetailId(@Param("goodsId")String goodsId,@Param("materialId")String materialId);
    /**
     * 新增库存产品拆解物料配置
     * @param entity 库存产品拆解物料配置
     * @return 结果
     */
    public int insert(GoodsOrderMaterials entity);

    /**
     * 修改库存产品拆解物料配置
     * @param entity 库存产品拆解物料配置
     * @return 结果
     */
    public int update(GoodsOrderMaterials entity);

    /**
     * 删除库存产品拆解物料配置
     * @param id 库存产品拆解物料配置主键
     * @return 结果
     */
    public int deleteById(String id);

    /**
     * 批量删除库存产品拆解物料配置
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    void replaceGoodsInfo(Map<String, Object> params);
}
